<? 	if ($category['main'] == 'unse') : ?>
<? 		if ($category['sub'] == 'star') : ?>
			<!--스타운세-->
			<h2 class="s_tit"><a href="/unse/star/total/main"><img src="/images/sub/star/tit_star.gif" alt="스타운세" /></a></h2>
			<div class="star_lnb">
				<ul>
					<li class="menu1"><a href="/unse/star/todaybirth/main" class="<?=$category['cont'] == 'todaybirth' ? 'on' : '' ?>">투데이스타</a></li>
					<li class="menu2"><a href="/unse/star/gunghap/form" class="<?=$category['cont'] == 'gunghap' ? 'on' : '' ?>">스타궁합</a></li>
				</ul>
			</div>
			<!--//스타운세-->
<?		elseif ($category['sub'] == 'saju') : ?>
			<!--명품사주-->
			<h2 class="s_tit"><a href="/unse/saju/total/form"><img src="/images/sub/saju/tit_saju.gif" alt="명품사주" /></a></h2>
			<div class="saju_lnb">
				<ul>
					<li class="menu1"><a href="/unse/saju/total/form" class="on">명품사주</a></li>
				</ul>
			</div>
			<!--//명품사주-->
<?		elseif ($category['sub'] == 'tojung') : ?>
			<!--토정비결-->
			<h2 class="s_tit"><a href="/unse/tojung/total/form?year=2012"><img src="/images/sub/tojung/tit_tojung.gif" alt="토정비결" /></a></h2>
			<div class="tojung_lnb">
				<ul>
                	<li class="menu1"><a href="/unse/tojung/total/form?year=2010" class="<?=$_GET['year'] == '2010' ? 'on' : '' ?>">2010</a></li>
					<li class="menu2"><a href="/unse/tojung/total/form?year=2011" class="<?=$_GET['year'] == '2011' ? 'on' : '' ?>">2011</a></li>
					<li class="menu3"><a href="/unse/tojung/total/form?year=2012" class="<?=$_GET['year'] == '2012' ? 'on' : '' ?>">2012</a></li>
					<li class="menu4"><a href="/unse/tojung/total/form?year=2013" class="<?=$_GET['year'] == '2013' ? 'on' : '' ?>">2013</a></li>
					<li class="menu5"><a href="/unse/tojung/total/form?year=2014" class="<?=$_GET['year'] == '2014' ? 'on' : '' ?>">2014</a></li>
					<li class="menu6"><a href="/unse/tojung/total/form?year=2015" class="<?=$_GET['year'] == '2015' ? 'on' : '' ?>">2015</a></li>
					<li class="menu7"><a href="/unse/tojung/total/form?year=2016" class="<?=$_GET['year'] == '2016' ? 'on' : '' ?>">2016</a></li>
					<li class="menu8"><a href="/unse/tojung/total/form?year=2017" class="<?=$_GET['year'] == '2017' ? 'on' : '' ?>">2017</a></li>
					<li class="menu9"><a href="/unse/tojung/total/form?year=2018" class="<?=$_GET['year'] == '2018' ? 'on' : '' ?>">2018</a></li>
					<li class="menu10"><a href="/unse/tojung/total/form?year=2019" class="<?=$_GET['year'] == '2019' ? 'on' : '' ?>">2019</a></li>
					<li class="menu11"><a href="/unse/tojung/total/form?year=2020" class="<?=$_GET['year'] == '2020' ? 'on' : '' ?>">2020</a></li>
					<li class="menu12"><a href="/unse/tojung/total/form?year=2021" class="<?=$_GET['year'] == '2021' ? 'on' : '' ?>">2021</a></li>
				</ul>
			</div>
			<!--//토정비결-->
<?		elseif ($category['sub'] == 'gunghap') : ?>
			<!--궁합/연애운-->
			<h2 class="s_tit"><a href="/unse/gunghap/main"><img src="/images/sub/gunghap/tit_gunghap.gif" alt="궁합/연애운" /></a></h2>
			<div class="gunghap_lnb">
				<ul>
					<li class="menu1"><a href="/unse/gunghap/mylover/form" class="<?=$category['cont'] == 'mylover' ? 'on' : '' ?>">내 운명의 상대는?</a></li>
					<li class="menu2"><a href="/unse/gunghap/sintong/form" class="<?=$category['cont'] == 'sintong' ? 'on' : '' ?>">신통방통 궁합</a></li>
					<li class="menu3"><a href="/unse/gunghap/style/form" class="<?=$category['cont'] == 'style' ? 'on' : '' ?>">내 애인은 어떤사람일까? </a></li>
                    <li class="menu4"><a href="/unse/money/gunghap/form">나와 애인의 금전궁합</a></li>
                    <li class="menu5"><a href="/unse/adult/total/form">19금</a></li>
				</ul>
			</div>
			<!--//궁합/연애운-->
<?		elseif ($category['sub'] == 'adult') : ?>
			 <!--S궁합-->
			<h2 class="s_tit"><a href="/unse/adult/total/form"><img src="/images/sub/adult/tit_adult.gif" alt="S궁합" /></a></h2>
			<div class="adult_lnb">
				<ul>
					<li class="menu1"><a href="/unse/adult/total/form" class="on">19금</a></li>
				</ul>
			</div>
			<!--S궁합-->
<?		elseif ($category['sub'] == 'theme' || $category['sub'] == 'money') : ?>
			<!--테마운세-->
			<h2 class="s_tit"><a href="/unse/theme/main"><img src="/images/sub/theme/tit_theme.gif" alt="테마운세" /></a></h2>
			<div class="theme_lnb">
				<ul>
					<li class="menu1"><a href="/unse/theme/business/form" class="<?=$category['cont'] == 'business' ? 'on' : '' ?>">사업운세</a></li>
					<li class="menu2"><a href="/unse/theme/joint/form" class="<?=$category['cont'] == 'joint' ? 'on' : '' ?>">동업운세</a></li>
					<li class="menu3"><a href="/unse/theme/children/form" class="<?=$category['cont'] == 'children' ? 'on' : '' ?>">자녀운세</a></li>
                    <li class="menu4"><a href="/unse/theme/savemoney/form" class="<?=$category['cont'] == 'savemoney' ? 'on' : '' ?>">재물모으는법</a></li>
                    <li class="menu5"><a href="/unse/theme/defendmoney/form" class="<?=$category['cont'] == 'defendmoney' ? 'on' : '' ?>">재물손실막는법</a></li>
                    <li class="menu6"><a href="/unse/theme/moneytech/form" class="<?=$category['cont'] == 'moneytech' ? 'on' : '' ?>">재테크비법 </a></li>
                    <li class="menu7"><a href="/unse/theme/subordinate/form" class="<?=$category['cont'] == 'subordinate' ? 'on' : '' ?>">직장부하운</a></li>
					<li class="menu8"><a href="/unse/theme/boss/form" class="<?=$category['cont'] == 'boss' ? 'on' : '' ?>">직장상사운</a></li>
                    <li class="menu9"><a href="/unse/money/mymoney/form" class="<?=$category['cont'] == 'mymoney' ? 'on' : '' ?>">나의 금전사주</a></li>
					<li class="menu10"><a href="/unse/money/gunghap/form" class="<?=$category['cont'] == 'gunghap' ? 'on' : '' ?>">나와 애인의 금전궁합</a></li>
				</ul>
			</div>
			<!--테마운세-->
<?		elseif ($category['sub'] == 'free') : ?>
			<!--무료운세-->
			<h2 class="s_tit"><a href="/unse/free/today/form"><img src="/images/sub/free/tit_free.gif" alt="무료운세" /></a></h2>
			<div class="free_lnb">
				<ul>
					<li class="menu1"><a href="/unse/free/today/form" class="<?=$category['cont'] == 'today' ? 'on' : '' ?>">오늘의 운세</a></li>
					<li class="menu2"><a href="/unse/free/todayline/result" class="<?=$category['cont'] == 'todayline' ? 'on' : '' ?>">오늘의 띠별 운세</a></li>
					<li class="menu3"><a href="/unse/free/dreamsolve/result" class="<?=$category['cont'] == 'dreamsolve' ? 'on' : '' ?>">꿈해몽</a></li>
					<li class="menu4"><a href="/unse/free/dreambirth/result" class="<?=$category['cont'] == 'dreambirth' ? 'on' : '' ?>">태몽</a></li>
					<li class="menu5"><a href="/unse/free/conste/result" class="<?=$category['cont'] == 'conste' ? 'on' : '' ?>">별자리운세</a></li>
					<li class="menu6"><a href="/unse/free/blood/result" class="<?=$category['cont'] == 'blood' ? 'on' : '' ?>">혈액형운세</a></li>
					<li class="menu7"><a href="/unse/free/bloodgunghap/form" class="<?=$category['cont'] == 'bloodgunghap' ? 'on' : '' ?>">혈액형궁합</a></li>
					<li class="menu8"><a href="/unse/free/tarot/form" class="<?=$category['cont'] == 'tarot' ? 'on' : '' ?>">타로점성술 </a></li>
					<li class="menu9"><a href="/unse/free/birthstone/result" class="<?=$category['cont'] == 'birthstone' ? 'on' : '' ?>">탄생석점</a></li>
				</ul>
			</div>
			<!--무료운세-->
<?		endif ?>
<?	elseif ($category['main'] == 'bbs') : ?>
<?		if ($category['sub'] == 'notice' || $category['sub'] == 'faq' || $category['sub'] == 'qna') : ?>
			 <!--고객센터-->
			<h2 class="s_tit"><a href="/bbs/notice"><img src="/images/sub/cs/tit_cs.gif" alt="고객센터" /></a></h2>
			<div class="cs_lnb">
				<ul>
					<li class="menu1"><a href="/bbs/notice" class="<?=$category['sub'] == 'notice' ? 'on' : '' ?>">공지사항</a></li>
					<li class="menu2"><a href="/bbs/event" class="<?=$category['sub'] == 'event' ? 'on' : '' ?>">이벤트</a></li>
                    <li class="menu3"><a href="/bbs/faq" class="<?=$category['sub'] == 'faq' ? 'on' : '' ?>">자주하는 질문</a></li>
					<li class="menu4"><a href="/bbs/qna/write" class="<?=$category['sub'] == 'qna' ? 'on' : '' ?>">1:1 문의하기</a></li>
				</ul>
			</div>
			<!--//고객센터-->
<?		elseif ($category['sub'] == 'event' || $category['sub'] == 'event_notice') : ?>
			<!--이벤트 게시판-->
			<h2 class="s_tit"><a href="/bbs/event"><img src="/images/sub/event/tit_event.gif" alt="이벤트게시판" /></a></h2>
			<div class="event_lnb">
				<ul>
					<li class="menu1"><a href="/bbs/event" class="<?=$category['sub'] == 'event' ? 'on' : '' ?>">전체 이벤트</a></li>
					<li class="menu2"><a href="/bbs/event_notice" class="<?=$category['sub'] == 'event_notice' ? 'on' : '' ?>">행운의 당첨자</a></li>
				</ul>
			</div>
			<!--//이벤트 게시판-->
<?		else : ?>
			<!--운세게시판-->
			<h2 class="s_tit"><a href="/bbs/postscript"><img src="/images/sub/bbs/tit_bbs.gif" alt="운세게시판" /></a></h2>
			<div class="bbs_lnb">
				<ul>
					<li class="menu1"><a href="/bbs/postscript" class="<?=$category['sub'] == 'postscript' ? 'on' : '' ?>">운세이용후기</a></li>
					<li class="menu2"><a href="/bbs/free" class="<?=$category['sub'] == 'free' ? 'on' : '' ?>">자유게시판</a></li>
					<li class="menu3"><a href="/bbs/starpt" class="<?=$category['sub'] == 'starpt' ? 'on' : '' ?>">스타사진 운세</a></li>
				</ul>
			</div>
			<!--//운세게시판-->
<?		endif ?>
<?	elseif ($category['main'] == 'mypage') : ?>
			  <!--마이페이지-->
			<h2 class="s_tit"><a href="/mypage/mypage"><img src="/images/sub/mypage/tit_mypage.gif" alt="마이페이지" /></a></h2>
			<div class="mypage_lnb">
				<ul>
					<li class="menu1"><a href="/mypage/service_history" class="<?=$category['sub'] == 'service_history' ? 'on' : '' ?>">내가 본 운세</a></li>
					<li class="menu2"><a href="/mypage/payment_history" class="<?=$category['sub'] == 'payment_history' ? 'on' : '' ?>">결제내역</a></li>
					<li class="menu3"><a href="/mypage/cash_history" class="<?=$category['sub'] == 'cash_history' ? 'on' : '' ?>">캐쉬내역</a></li>
					<li class="menu4"><a href="/mypage/point_history" class="<?=$category['sub'] == 'point_history' ? 'on' : '' ?>">포인트내역</a></li>
					<li class="menu5"><a href="/mypage/vip_status" class="<?=$category['sub'] == 'vip_status' ? 'on' : '' ?>">VIP이용권내역</a></li>
					<li class="menu6"><a href="/mypage/event_history" class="<?=$category['sub'] == 'event_history' ? 'on' : '' ?>">참여한 이벤트</a></li>
					<li class="menu7"><a href="/mypage/qna_history" class="<?=$category['sub'] == 'qna_history' ? 'on' : '' ?>">1:1 상담내역</a></li>
					<li class="menu8"><a href="/mypage/change/info" class="<?=$category['cont'] == 'info' ? 'on' : '' ?>">회원정보수정</a></li>
					<li class="menu9"><a href="/mypage/change/password" class="<?=$category['cont'] == 'password' ? 'on' : '' ?>">패스워드변경</a></li>
					<li class="menu10"><a href="/mypage/change/dropout" class="<?=$category['cont'] == 'dropout' ? 'on' : '' ?>">회원탈퇴</a></li>
				</ul>
			</div>
			<!--//마이페이지-->
<?	endif ?>

			